package chapt01;

import java.util.ArrayList;

import javax.swing.AbstractListModel;

	@SuppressWarnings("hiding")
	public class MyListModel<Number> extends AbstractListModel {
		private static final long serialVersionUID = 1L;
		private ArrayList<Number> people;

	    public MyListModel(ArrayList<Number> people) {
	        this.people = people;
	    }
	    @Override
	    public int getSize() {
	        return people.size();
	    }
	    @Override
	    public Number getElementAt(int index) {
	        return people.get(index);
	    }
	}
